// 定义一个枚举类型
enum Direction {
  LEFT = "LEFT",
  UP = "UP",
  DOWN = "DOWN",
  RIGHT = "RIGHT"
}

const d1: Direction = Direction.UP
function turnDirection(direction: Direction) {
  switch (direction) {
    case Direction.LEFT:
      console.log("向左移动")
      break;
    case Direction.RIGHT:
      console.log("向右移动")
      break;
    case Direction.UP:
      console.log("向上移动")
      break;
    case Direction.DOWN:
      console.log("向下移动")
      break;
    default:
      break;
  }
}
turnDirection(Direction.LEFT)
turnDirection(Direction.UP)
turnDirection(Direction.DOWN)



enum Operation {
  Read = 1 << 0,
  Write = 1 << 1,
  foo = 1 << 2,
}

export { }